//
//  DataService.m
//  项目1 CLCMovie
//
//  Created by huiwenjiaoyu on 15/7/21.
//  Copyright (c) 2015年 CLC. All rights reserved.
//

#import "DataService.h"

@implementation DataService

+ (id)getArrayOrDictionNaryfromJosnWithNamed:(NSString *)jsonName
{
    NSString* filePath = [[NSBundle mainBundle] pathForResource:jsonName ofType:@"json"];
    NSData* data = [NSData dataWithContentsOfFile:filePath];
    id dictionaryOrArray = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
    return dictionaryOrArray;
}
@end
